package com.netty.bfport.http.controller;

import com.netty.bfport.http.common.base.BaseResponse;
import com.netty.bfport.http.common.base.BaseResponseVO;

import com.netty.bfport.http.service.UserMachineService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Author: zhaoyang05
 * @Data: 2022/3/23 10:28
 * @Description
 */
@RequestMapping("/equipment_inspection")
@RestController
public class UserMachineController {
    @Resource
    UserMachineService userMachineService;

    /**
     * 添加人员和设备绑定关系
     * */
    @GetMapping("/list")
    public BaseResponseVO userMachineList(@RequestParam("name")String name, @RequestParam("telephone")String telephone, @RequestParam("equipmentId")String equipmentId,@RequestParam("page")Integer page,@RequestParam("size")Integer size){
        return BaseResponse.setResultSuccess(userMachineService.userMachineList(name, telephone, equipmentId,page ,size ));
    }




}
